package com.example.demo_scan_example;

import androidx.annotation.NonNull;

import com.example.demo_scan.JumpChannel;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;

public class MainActivity extends FlutterActivity {

    @Override
    public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
        super.configureFlutterEngine(flutterEngine);
        // 跳转到原生Android页面
        new JumpChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), this);
    }
}
